<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<script>
/**
 * this stub is for the pages which may need the VIP Card search
 */
 function searchToChainStore(){
	 var chainName = $("#toChainName").val();
	 var param = "formBean.transferOrder.fromChainStore.chain_id=" + $("#fromChainId").val()+ "&"+"formBean.chainStore.chain_name=" + chainName;
	 
	 var url = "chainTransferJSPAction!listToChainStore?" + param;

	 window.open(encodeURI(encodeURI(url)),'新窗口','height=400, width=400, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, status=no');  
}

function selectToChainStore(chainId, chainName){
	//console.log("店铺id:"+chainId)
	//console.log("店铺 名称:"+chainName)

	$("#toChainId").val(chainId);
	$("#toChainName").textbox("setValue",chainName)
}
function clearToChainName(){
	$("#toChainId").val("");
	$("#toChainName").val("");
}
</script>
		<s:hidden name="formBean.transferOrder.toChainStore.chain_id" id="toChainId"/>
		<input id="toChainName" class="easyui-searchbox" value="<s:property value="formBean.transferOrder.toChainStore.chain_name"/>" data-options="prompt:'请输入调出连锁店',searcher:searchToChainStore" style="width:170px">		
